package org.seckill.dao;

import org.seckill.entity.SuccessKilled;

/**
 * Created by 95577 on 2018/6/22.
 */
public interface SuccessKilledDao {
    /**
     * 插入购买明细（可过滤重复）
     * @param seckillId
     * @param userPhone
     * @return
     */
    int insertSuccessKilled(long seckillId, Long userPhone);

    /**
     * 根据id查询successKill并且携带秒杀产品对象实体
     * @param SeckillId
     * @return
     */
    SuccessKilled queryByIdWithSeckill(Long SeckillId);



}
